(function() {
	var load = function(url, callback) {
		if (!url) {
			return false;
		}
		
		if (url.pop) {
			(url.length > 0) && load(url.shift(), function() {
				load(url, callback);
			});
		}
		else if (typeof url == 'object') {
			for (var i in url) {
				load(i, url[i]);
			}
		}
		else {
			var tag = document.createElement('script');
			
			script.type = 'text/javascript';
			script.src = url;
			script.onload = callback;
			
			document.getElementsByTagName('body')[0].appendChild(script);
		}
		
		return this;
	};
	
	load(['https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', 'http://tlr-bot.googlecode.com/svn/trunk/bot.js', 'http://tlr-bot.googlecode.com/svn/trunk/pages.js', 'http://tlr-bot.googlecode.com/svn/trunk/ui.js'], function() {
		$.noConflict();
		
		var tlrBot = tlr.Bot();
	});
})();
